home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / GRAVIS / PATSHAD2.ZIP / PATSHADO.BAT < prev    next >
DOS Batch File  |  1994-01-19  |  2KB  |  76 lines

  1. @echo off
  2. cls
  3. echo UltraSound patch for Shadow Caster
  4. echo Adds UltraSound support to Shadow Caster
  5. echo Does NOT support the Shadow Caster demo
  6. echo.
  7.  
  8. if [%1] == [] goto usage
  9. if not [%2] == [] goto usage
  10. if not exist %1\raven.exe goto baddir
  11. if exist %1\shadback\raven.exe goto skipback
  12.  
  13. echo Backing up selected files to %1\shadback
  14. md %1\shadback
  15. copy %1\raven.exe %1\shadback\raven.exe > nul
  16. copy %1\adplay.exe %1\shadback\adplay.exe > nul
  17. copy %1\testvoc.exe %1\shadback\testvoc.exe > nul
  18. copy %1\testxmi.exe %1\shadback\testxmi.exe > nul
  19. copy %1\drivers.cfg %1\shadback\drivers.cfg > nul
  20. copy %1\shadow.bat %1\shadback\shadow.bat > nul
  21. copy %1\*.dll %1\shadback\*.dll > nul
  22.  
  23. :skipback
  24. echo Copying new files
  25. copy %1\shadback\shadow.bat %1\loadshad.bat > nul
  26. copy shadow.001 %1\shadow.bat > nul
  27. copy gusmid32.dll %1\a32mt32.dll > nul
  28. copy gusmid32.dll %1\a32sbfm.dll > nul
  29. copy gusdig32.dll %1\a32sbdg.dll > nul
  30. copy drivers.cfg %1\drivers.cfg  > nul
  31. copy loadpats.exe %1\loadpats.exe > nul
  32. copy patches.ini %1\patches.ini > nul
  33.  
  34. echo Patching .EXE files
  35. a32lpat %1\raven.exe > nul
  36. a32lpat %1\adplay.exe > nul
  37. a32lpat %1\testvoc.exe > nul
  38. a32lpat %1\testxmi.exe > nul
  39.  
  40. cls
  41. echo.
  42. echo.
  43. echo Shadow Caster has been patched.
  44. echo.
  45. echo The Sound drivers have been replaced with UltraSound drivers and the
  46. echo game configured for General MIDI music with Digital Sound.
  47. echo.
  48. echo All modified files have been backed up to %1\shadback
  49. echo.
  50. echo Type SHADOW [ENTER] to play Shadow Caster
  51. echo.
  52. goto end
  53.  
  54. :baddir
  55. echo Shadow Caster does not appear to be installed in the specified directory.
  56. echo.
  57. goto end
  58.  
  59. :usage
  60. echo.
  61. echo USAGE:
  62. echo.
  63. echo %0 DIRECTORY
  64. echo.
  65. echo where DIRECTORY is the full drive and path where Shadow Caster is
  66. echo installed. For example:
  67. echo.
  68. echo     a:
  69. echo     %0 C:\SHADOW
  70. echo.
  71. echo would apply patches from the a: diskette drive to the installation
  72. echo in the C:\SHADOW subdirectory
  73. echo.
  74. :end
  75.  
  76.